import request from '@/utils/request'
// --------  问金消耗设定 --------
let BASE_ADDRESS = '/base/config'
// 分页查询

export const getconfigListVoucherApi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/listVoucher`,
        method: 'get',
        params: data
    })
}


// 修改
export const getConfigEditVoucherApi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/editVoucher`,
        method: 'put',
        data
    })
}
// 删除
export const getConfigRemoveVoucherApi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/removeVoucher`,
        method: 'delete',
        data
    })
}

//id查询
export const getConfigGetInfoVoucherApi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/getInfoVoucher`,
        method: 'get',
        params: data
    })
}


//添加
export const getConfigAddVoucherApi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/addVoucher`,
        method: 'post',
        data
    })
}